import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView
    // },
    // {
    //   path: '/about',
    //   name: 'about',
    //   component: () => import('../views/AboutView.vue')
    // }
    {
      path: '/UserLogin',
      name: 'UserLogin',
      component: () => import('../views/UserLogin.vue')
    }, {
      path: '/MainView',
      name: 'MainView',
      component: () => import('../views/MainView.vue'),
      children: [
        {
          path: '/',
          name: 'RabbitList',
          component: () => import('../views/Rabbit/RabbitList.vue')
        }, {
          path: '/ShopInfoList',
          name: 'ShopInfoList',
          component: () => import('../views/Rabbit/ShopInfoList.vue')
        }, {
          path: '/RabbitRarm',
          name: 'RabbitRarm',
          component: () => import('../views/Rabbit/RabbitRarm.vue')
        }, {
          path: '/CarcassList',
          name: 'CarcassList',
          component: () => import('../views/Rabbit/CarcassList.vue')
        }, {
          path: '/ProcessList',
          name: 'ProcessList',
          component: () => import('../views/Rabbit/ProcessList.vue')
        },
      ]
    },
  ]
})

export default router
